<!DOCTYPE html>
<html>
<#include "../../include/PC_Header.html"> 
<body>
<#assign nid="my_account">  
<#assign flag="creditApply"> 
<#include "../../include/header.html">
	<!--#container-->
	<#include "../../include/member_borrow_header.html">
<div id="container">
	<div class="usermain clearfix">
		<div class="user_left">
			<#include "../account_menu.html">
		</div>
		<div class="user_right">
			<h2 class="user_title">信用额度</h2>
			<ul class="amountApplyTab clearfix">
				<li class="hover">申请额度</li>
				<li><a href="/member_borrow/borrow/creditApply.html">申请记录</a></li>
			</ul>
			<div class="amountApplyTabBox">
		            <#if applyIngCount?exists&&applyIngCount&gt;0>
		            	<div class="small_add"><p>申请已提交，等待系统审核</p></div>
					<#else>
					<!-- S 申请信用额度 -->
					<form action="${webroot}/member/borrow/doCreditApply.html"  method="post" id="addAmountApply">
						<#if applyIngCount?exists&&applyIngCount&gt;0>
							<div class="small_add"><p>申请已提交，等待系统审核</p></div>
						<#else>
						<div class="formitm">
			                <label class="lab">申请人</label>
			                <div class="ipt"><span class="userName">${session_user.userName}</span></div>
			            </div>
			            <div class="formitm">
			                <label class="lab">申请金额</label>
			                <div class="ipt">
			                	<input type="text" id="amount" name="amount" maxlength="5" class="applyingInput" onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" /><span class="yuan">元</span><span class="tips">（每次最多可以申请10000元）</span><em></em>
							</div>
			            </div>
			            <div class="formitm">
			                <label class="lab">详情说明</label>
			                <div class="ipt">
			                	<textarea name="content" id="bidTit" class="content" maxlength="100"></textarea>
			                	<em></em>
							</div>
			            </div>
			            <div class="formitm">
			                <label class="lab">其他说明</label>
			                <div class="ipt">
			                	<textarea name="remark" class="content" maxlength="100"></textarea>
							</div>
			            </div>
			            <div class="formitm">
			                <label class="lab"></label>
			                <div class="ipt">
			                	<input type="submit" name="name" class="addBtn" value="确认提交" size="30" />
							</div>
			            </div>
						<p class="errorMsg"></p>
						</#if>
					</form>
					<!-- E 申请信用额度 -->
					</#if>
			</div>
	        </div>
		</div>
	</div>	
</div>
<script>seajs.use('member_borrow/usercertification_addApply');</script>
<#include "../../include/footer.html"> 
